﻿<script type="text/javascript">
    var txtSearchID = "txtSearch";
    $(function () {
        $("#aSearch").click(function () {
            var vSearchCondition = trim(getVal(txtSearchID));
            if (!vSearchCondition || vSearchCondition == "") {
                return;
            }
            var url="@Url.Action("Index", "Search", new { shopType = (Model != "" && Convert.ToInt32(Model) == 1 ? "1" : "2") })";
            window.location.href = url+"&Condition=" + vSearchCondition;
        });
        $("#txtSearch").focus(function(){
            if($(this).val()=="鞋")
            {
                $(this).val("");
            }
        });
        $("#txtSearch").blur(function(){
            if($(this).val()=="")
            {
                $(this).val("鞋");
            }
        });
    });
</script>
<div class="header_bar">
    <a href="@Url.Action("index", "Home", null)">
        <div class="webshop">
        </div>
    </a><a href="@Url.Action("EntityStore", "Home", null)">
        <div class="entityshop">
        </div>
    </a><a href="@Url.Action("SelectType", "Home", null)">
        <div class="btnReleaseInfo">
        </div>
    </a>
    <div class="search_bg @(Model != "" && Convert.ToInt32(Model) == 2 ? "entity" : "")">
        <div class="search_input">
            <input id="txtSearch" type="text" value="@(Request.QueryString["Condition"] != null ? Request.QueryString["Condition"].ToString() : "鞋")" />
            <div id="aSearch" class="btn"></div>
        </div>
        <div class="hotsearch">
            <strong>热门搜索：</strong>鞋、衬衫、短袖、手机
        </div>
    </div>
</div>
